package com.yq.ylmall.wechat.task;

import com.yq.ylmall.wechat.service.WechatPayService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @Project: yourlife
 * @Name: WechatTask
 * @Author: Jack_Li
 * @Date: 2024/6/14 17:24
 */

@Slf4j
@Component
public class WechatTask {

    // TODO 引入订单远程调用

    @Resource
    private WechatPayService wechatPayService;

    /**
     *
     */
    @Scheduled(cron = "0/30 * * * * ?")
    public void orderConfirm() throws Exception {
        // 核实订单状态，调用微信支付查单接口

        // wechatPayService.checkOrderStatus("YL172921524625368");
    }

}
